<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::AbstractConstraintHandler&lt; SearchPointType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_abstract_constraint_handler.html">AbstractConstraintHandler</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_abstract_constraint_handler-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::AbstractConstraintHandler&lt; SearchPointType &gt; Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__objfunctions.html">Objective functions</a> &raquo; <a class="el" href="group__constraint__handling.html">Constraint Handling</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Implements the base class for constraint handling.  
 <a href="classshark_1_1_abstract_constraint_handler.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_abstract_constraint_handler_8h_source.html">shark/ObjectiveFunctions/AbstractConstraintHandler.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::AbstractConstraintHandler&lt; SearchPointType &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_abstract_constraint_handler__inherit__graph.png" border="0" usemap="#ashark_1_1_abstract_constraint_handler_3_01_search_point_type_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_abstract_constraint_handler_3_01_search_point_type_01_4_inherit__map" id="ashark_1_1_abstract_constraint_handler_3_01_search_point_type_01_4_inherit__map">
<area shape="rect" title="Implements the base class for constraint handling." alt="" coords="5,5,195,46"/>
<area shape="rect" href="classshark_1_1_box_constraint_handler.html" title=" " alt="" coords="5,94,195,135"/>
<area shape="poly" title=" " alt="" coords="103,62,103,94,97,94,97,62"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:add5028257a6639b20d8158a8d2a39f8b" id="r_add5028257a6639b20d8158a8d2a39f8b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8b">Feature</a> { <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8ba48f78b9f8beb3409073884150778c4b8">CAN_PROVIDE_CLOSEST_FEASIBLE</a> = 1
, <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8ba67b53854ecfb4088233fa07aae44677e">IS_BOX_CONSTRAINED</a> = 2
, <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8bafeaf8889f19650bb54dd7f0deca26fc8">CAN_GENERATE_RANDOM_POINT</a> = 4
 }</td></tr>
<tr class="separator:add5028257a6639b20d8158a8d2a39f8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add645da2ddc1cdbdaa89237a2a2d0b63" id="r_add645da2ddc1cdbdaa89237a2a2d0b63"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_flags.html">TypedFlags</a>&lt; <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8b">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#add645da2ddc1cdbdaa89237a2a2d0b63">Features</a></td></tr>
<tr class="separator:add645da2ddc1cdbdaa89237a2a2d0b63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b9ed60c324f540d803337da646a2116" id="r_a9b9ed60c324f540d803337da646a2116"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_feature_not_available_exception.html">TypedFeatureNotAvailableException</a>&lt; <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8b">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#a9b9ed60c324f540d803337da646a2116">FeatureNotAvailableException</a></td></tr>
<tr class="separator:a9b9ed60c324f540d803337da646a2116"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a19f2929814f2df8c5af3d801f6f0fa4f" id="r_a19f2929814f2df8c5af3d801f6f0fa4f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add645da2ddc1cdbdaa89237a2a2d0b63">Features</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#a19f2929814f2df8c5af3d801f6f0fa4f">features</a> () const</td></tr>
<tr class="separator:a19f2929814f2df8c5af3d801f6f0fa4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a16a6bb43de84d48387c1522f7a4a7b" id="r_a5a16a6bb43de84d48387c1522f7a4a7b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#a5a16a6bb43de84d48387c1522f7a4a7b">updateFeatures</a> ()</td></tr>
<tr class="separator:a5a16a6bb43de84d48387c1522f7a4a7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9899a9acc5ed780f9849b3334b1921b" id="r_af9899a9acc5ed780f9849b3334b1921b"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#af9899a9acc5ed780f9849b3334b1921b">~AbstractConstraintHandler</a> ()</td></tr>
<tr class="separator:af9899a9acc5ed780f9849b3334b1921b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05adea67dd581616abf51b9f51d425c9" id="r_a05adea67dd581616abf51b9f51d425c9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#a05adea67dd581616abf51b9f51d425c9">canProvideClosestFeasible</a> () const</td></tr>
<tr class="memdesc:a05adea67dd581616abf51b9f51d425c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this function can calculate the closest feasible to an infeasible point.  <br /></td></tr>
<tr class="separator:a05adea67dd581616abf51b9f51d425c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedb08703ce0c179aa3a05f17d4a1874f" id="r_aedb08703ce0c179aa3a05f17d4a1874f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#aedb08703ce0c179aa3a05f17d4a1874f">isBoxConstrained</a> () const</td></tr>
<tr class="memdesc:aedb08703ce0c179aa3a05f17d4a1874f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this function is an instance of <a class="el" href="classshark_1_1_box_constraint_handler.html" title="Handler for box-constraints.">BoxConstraintHandler</a>.  <br /></td></tr>
<tr class="separator:aedb08703ce0c179aa3a05f17d4a1874f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a454524f3253a60a2564a21045fbdc5e9" id="r_a454524f3253a60a2564a21045fbdc5e9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#a454524f3253a60a2564a21045fbdc5e9">canGenerateRandomPoint</a> () const</td></tr>
<tr class="memdesc:a454524f3253a60a2564a21045fbdc5e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this function is an instance of <a class="el" href="classshark_1_1_box_constraint_handler.html" title="Handler for box-constraints.">BoxConstraintHandler</a>.  <br /></td></tr>
<tr class="separator:a454524f3253a60a2564a21045fbdc5e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6d491f9552b1a1ce440e8c675db929b" id="r_ae6d491f9552b1a1ce440e8c675db929b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#ae6d491f9552b1a1ce440e8c675db929b">generateRandomPoint</a> (random::rng_type &amp;rng, SearchPointType &amp;startingPoint) const</td></tr>
<tr class="memdesc:ae6d491f9552b1a1ce440e8c675db929b"><td class="mdescLeft">&#160;</td><td class="mdescRight">If supported, generates a random point inside the feasible region.  <br /></td></tr>
<tr class="separator:ae6d491f9552b1a1ce440e8c675db929b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeef35996d9bc707be399480e8e0c1f82" id="r_aeef35996d9bc707be399480e8e0c1f82"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#aeef35996d9bc707be399480e8e0c1f82">isFeasible</a> (SearchPointType const &amp;) const =0</td></tr>
<tr class="memdesc:aeef35996d9bc707be399480e8e0c1f82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the point is in the feasible Region.  <br /></td></tr>
<tr class="separator:aeef35996d9bc707be399480e8e0c1f82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb58033fab48e9ffd58021054f916c7f" id="r_abb58033fab48e9ffd58021054f916c7f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#abb58033fab48e9ffd58021054f916c7f">closestFeasible</a> (SearchPointType &amp;) const</td></tr>
<tr class="separator:abb58033fab48e9ffd58021054f916c7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:abd9bacdebce91be7f1e7ff1b9d9fc826" id="r_abd9bacdebce91be7f1e7ff1b9d9fc826"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#add645da2ddc1cdbdaa89237a2a2d0b63">Features</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#abd9bacdebce91be7f1e7ff1b9d9fc826">m_features</a></td></tr>
<tr class="separator:abd9bacdebce91be7f1e7ff1b9d9fc826"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class SearchPointType&gt;<br />
class shark::AbstractConstraintHandler&lt; SearchPointType &gt;</div><p>Implements the base class for constraint handling. </p>
<p>A constraint handler provides information about the feasible region of a constrained optimization problem. In the minimum it checks whether a point is feasible, or what the next fasible point would be. </p>

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00053">53</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a9b9ed60c324f540d803337da646a2116" name="a9b9ed60c324f540d803337da646a2116"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b9ed60c324f540d803337da646a2116">&#9670;&#160;</a></span>FeatureNotAvailableException</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_typed_feature_not_available_exception.html">TypedFeatureNotAvailableException</a>&lt;<a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8b">Feature</a>&gt; <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::FeatureNotAvailableException</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00060">60</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

</div>
</div>
<a id="add645da2ddc1cdbdaa89237a2a2d0b63" name="add645da2ddc1cdbdaa89237a2a2d0b63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add645da2ddc1cdbdaa89237a2a2d0b63">&#9670;&#160;</a></span>Features</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_typed_flags.html">TypedFlags</a>&lt;<a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8b">Feature</a>&gt; <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::Features</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00060">60</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="add5028257a6639b20d8158a8d2a39f8b" name="add5028257a6639b20d8158a8d2a39f8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add5028257a6639b20d8158a8d2a39f8b">&#9670;&#160;</a></span>Feature</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8b">shark::AbstractConstraintHandler::Feature</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="add5028257a6639b20d8158a8d2a39f8ba48f78b9f8beb3409073884150778c4b8" name="add5028257a6639b20d8158a8d2a39f8ba48f78b9f8beb3409073884150778c4b8"></a>CAN_PROVIDE_CLOSEST_FEASIBLE&#160;</td><td class="fielddoc"><p>The constraint handler can provide a close feasible point to an infeasible one. </p>
</td></tr>
<tr><td class="fieldname"><a id="add5028257a6639b20d8158a8d2a39f8ba67b53854ecfb4088233fa07aae44677e" name="add5028257a6639b20d8158a8d2a39f8ba67b53854ecfb4088233fa07aae44677e"></a>IS_BOX_CONSTRAINED&#160;</td><td class="fielddoc"><p>The constraint handler is an instance of <a class="el" href="classshark_1_1_box_constraint_handler.html" title="Handler for box-constraints.">BoxConstraintHandler</a>. </p>
</td></tr>
<tr><td class="fieldname"><a id="add5028257a6639b20d8158a8d2a39f8bafeaf8889f19650bb54dd7f0deca26fc8" name="add5028257a6639b20d8158a8d2a39f8bafeaf8889f19650bb54dd7f0deca26fc8"></a>CAN_GENERATE_RANDOM_POINT&#160;</td><td class="fielddoc"><p>The ConstraintHandler can generate a random point inside the feasible region. </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00055">55</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af9899a9acc5ed780f9849b3334b1921b" name="af9899a9acc5ed780f9849b3334b1921b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9899a9acc5ed780f9849b3334b1921b">&#9670;&#160;</a></span>~AbstractConstraintHandler()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::~<a class="el" href="classshark_1_1_abstract_constraint_handler.html">AbstractConstraintHandler</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00062">62</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a454524f3253a60a2564a21045fbdc5e9" name="a454524f3253a60a2564a21045fbdc5e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a454524f3253a60a2564a21045fbdc5e9">&#9670;&#160;</a></span>canGenerateRandomPoint()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::canGenerateRandomPoint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns whether this function is an instance of <a class="el" href="classshark_1_1_box_constraint_handler.html" title="Handler for box-constraints.">BoxConstraintHandler</a>. </p>

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00074">74</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8bafeaf8889f19650bb54dd7f0deca26fc8">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::CAN_GENERATE_RANDOM_POINT</a>, and <a class="el" href="classshark_1_1_abstract_constraint_handler.html#abd9bacdebce91be7f1e7ff1b9d9fc826">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::m_features</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_abstract_objective_function.html#a2b1a8af419059a542cb3d0848dd278a2">shark::AbstractObjectiveFunction&lt; PointType, ResultT &gt;::announceConstraintHandler()</a>.</p>

</div>
</div>
<a id="a05adea67dd581616abf51b9f51d425c9" name="a05adea67dd581616abf51b9f51d425c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05adea67dd581616abf51b9f51d425c9">&#9670;&#160;</a></span>canProvideClosestFeasible()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::canProvideClosestFeasible </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns whether this function can calculate the closest feasible to an infeasible point. </p>

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00065">65</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8ba48f78b9f8beb3409073884150778c4b8">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::CAN_PROVIDE_CLOSEST_FEASIBLE</a>, and <a class="el" href="classshark_1_1_abstract_constraint_handler.html#abd9bacdebce91be7f1e7ff1b9d9fc826">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::m_features</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_abstract_objective_function.html#a2b1a8af419059a542cb3d0848dd278a2">shark::AbstractObjectiveFunction&lt; PointType, ResultT &gt;::announceConstraintHandler()</a>.</p>

</div>
</div>
<a id="abb58033fab48e9ffd58021054f916c7f" name="abb58033fab48e9ffd58021054f916c7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb58033fab48e9ffd58021054f916c7f">&#9670;&#160;</a></span>closestFeasible()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::closestFeasible </td>
          <td>(</td>
          <td class="paramtype">SearchPointType &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented in <a class="el" href="classshark_1_1_box_constraint_handler.html#a791747463fd86c8988f4caafda3b6e55">shark::BoxConstraintHandler&lt; SearchPointType &gt;</a>, and <a class="el" href="classshark_1_1_box_constraint_handler.html#a791747463fd86c8988f4caafda3b6e55">shark::BoxConstraintHandler&lt; Vector &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00090">90</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8ba48f78b9f8beb3409073884150778c4b8">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::CAN_PROVIDE_CLOSEST_FEASIBLE</a>, and <a class="el" href="_flags_8h.html#a6e41326253dee198183b5cbde3570c6c">SHARK_FEATURE_EXCEPTION</a>.</p>

</div>
</div>
<a id="a19f2929814f2df8c5af3d801f6f0fa4f" name="a19f2929814f2df8c5af3d801f6f0fa4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19f2929814f2df8c5af3d801f6f0fa4f">&#9670;&#160;</a></span>features()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add645da2ddc1cdbdaa89237a2a2d0b63">Features</a> &amp; <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::features </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00060">60</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

</div>
</div>
<a id="ae6d491f9552b1a1ce440e8c675db929b" name="ae6d491f9552b1a1ce440e8c675db929b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6d491f9552b1a1ce440e8c675db929b">&#9670;&#160;</a></span>generateRandomPoint()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::generateRandomPoint </td>
          <td>(</td>
          <td class="paramtype">random::rng_type &amp;&#160;</td>
          <td class="paramname"><em>rng</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SearchPointType &amp;&#160;</td>
          <td class="paramname"><em>startingPoint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>If supported, generates a random point inside the feasible region. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rng</td><td>The random number generator used for generating the point </td></tr>
    <tr><td class="paramname">startingPoint</td><td>The proposed point </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classshark_1_1_box_constraint_handler.html#a7c5a1e0e7f1041abd44844d3e2083c12">shark::BoxConstraintHandler&lt; SearchPointType &gt;</a>, and <a class="el" href="classshark_1_1_box_constraint_handler.html#a7c5a1e0e7f1041abd44844d3e2083c12">shark::BoxConstraintHandler&lt; Vector &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00082">82</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8bafeaf8889f19650bb54dd7f0deca26fc8">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::CAN_GENERATE_RANDOM_POINT</a>, and <a class="el" href="_flags_8h.html#a6e41326253dee198183b5cbde3570c6c">SHARK_FEATURE_EXCEPTION</a>.</p>

</div>
</div>
<a id="aedb08703ce0c179aa3a05f17d4a1874f" name="aedb08703ce0c179aa3a05f17d4a1874f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedb08703ce0c179aa3a05f17d4a1874f">&#9670;&#160;</a></span>isBoxConstrained()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::isBoxConstrained </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns whether this function is an instance of <a class="el" href="classshark_1_1_box_constraint_handler.html" title="Handler for box-constraints.">BoxConstraintHandler</a>. </p>

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00070">70</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_constraint_handler.html#add5028257a6639b20d8158a8d2a39f8ba67b53854ecfb4088233fa07aae44677e">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::IS_BOX_CONSTRAINED</a>, and <a class="el" href="classshark_1_1_abstract_constraint_handler.html#abd9bacdebce91be7f1e7ff1b9d9fc826">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::m_features</a>.</p>

</div>
</div>
<a id="aeef35996d9bc707be399480e8e0c1f82" name="aeef35996d9bc707be399480e8e0c1f82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeef35996d9bc707be399480e8e0c1f82">&#9670;&#160;</a></span>isFeasible()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::isFeasible </td>
          <td>(</td>
          <td class="paramtype">SearchPointType const &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if the point is in the feasible Region. </p>
<p>This function must be implemented by a ConstraintHandler </p>

<p>Implemented in <a class="el" href="classshark_1_1_box_constraint_handler.html#a3a87fd3165faee82fb59ab50ed7ad8aa">shark::BoxConstraintHandler&lt; SearchPointType &gt;</a>, and <a class="el" href="classshark_1_1_box_constraint_handler.html#a3a87fd3165faee82fb59ab50ed7ad8aa">shark::BoxConstraintHandler&lt; Vector &gt;</a>.</p>

</div>
</div>
<a id="a5a16a6bb43de84d48387c1522f7a4a7b" name="a5a16a6bb43de84d48387c1522f7a4a7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a16a6bb43de84d48387c1522f7a4a7b">&#9670;&#160;</a></span>updateFeatures()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::updateFeatures </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00060">60</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="abd9bacdebce91be7f1e7ff1b9d9fc826" name="abd9bacdebce91be7f1e7ff1b9d9fc826"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd9bacdebce91be7f1e7ff1b9d9fc826">&#9670;&#160;</a></span>m_features</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_abstract_constraint_handler.html#add645da2ddc1cdbdaa89237a2a2d0b63">Features</a> <a class="el" href="classshark_1_1_abstract_constraint_handler.html">shark::AbstractConstraintHandler</a>&lt; SearchPointType &gt;::m_features</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_constraint_handler_8h_source.html#l00060">60</a> of file <a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_abstract_constraint_handler.html#a454524f3253a60a2564a21045fbdc5e9">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::canGenerateRandomPoint()</a>, <a class="el" href="classshark_1_1_abstract_constraint_handler.html#a05adea67dd581616abf51b9f51d425c9">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::canProvideClosestFeasible()</a>, and <a class="el" href="classshark_1_1_abstract_constraint_handler.html#aedb08703ce0c179aa3a05f17d4a1874f">shark::AbstractConstraintHandler&lt; SearchPointType &gt;::isBoxConstrained()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/ObjectiveFunctions/<a class="el" href="_abstract_constraint_handler_8h_source.html">AbstractConstraintHandler.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
